import Vue from 'vue'
/* global Vue */
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Menu from '@/components/Menu'
import WebView from '@/components/WebView'
import SaoLei from '@/components/SaoLei'

Vue.use(Router)

export default new Router({
  mode: 'abstract',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/menu',
      name: '菜单',
      component: Menu
    },
    {
      path: '/webView',
      name: '线上内容',
      component: WebView
    },
    {
      path: '/saoLei',
      name: '扫雷',
      component: SaoLei
    }
  ]
})
